#include<stdio.h>

int swap(int* a, int* b)
{
	int temp = *a;
	*a = *b;
	*b = temp;
	return 0;
}

int main()
{
	int num1, num2;
	scanf_s("%d %d", &num1, &num2);
	swap(&num1,&num2);
	printf("%d %d", num1, num2);
	return 0;
}